
#ifndef _Console_H_
#define _Console_H_

#include "Utils/Vector2D.h"
#include "Graphics/Font.h"

#include <list>

class Console {
  public:
    Console(Vector2D bottom_left, Vector2D top_right);
    ~Console();

    void addEntry(std::string text);
    void render(void);
    void clear(void);

  private:
    std::list<std::string> text_buffer;
    Font font;
    Vector2D bottom_left, top_right;
    unsigned max_lines;
    float row_height;


    void renderConsoleBackground(void);
    void renderConsoleText(void);
};


#endif

